<?php
namespace app\model\user;

use think\Model;

class ZxlKnowStoreAdviceModel extends Model
{
    protected $name = 'zxl_know_store_advice';

    /**
     * 商品类型
     */
    public static function getAdviceType($key=''){
        $type = [
            '我要咨询'  => '我要咨询',
            '产品建议'  => '产品建议',
            'BUG反馈'   => 'BUG反馈',
            '举报AI'    => '举报AI',
            '其他'      => '其他',
        ];
        if('' !== $key){
            if(array_key_exists($key,$type)){
                return $type[$key];
            }
            return false;
        }
        return $type;
    }
}